﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Reflection.PortableExecutable;
using System.Text;
using System.Threading.Tasks;

namespace MCPlatform.Shared.DAL.Models
{
    [Table("ProductionStatistics")]
    public class ProductionDataModel
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Decimal Id { get; set; }

        public DateTime StartTime { get; set; }

        public string? ProductionType { get; set; }


        public string? Operator { get; set; }

        public TimeSpan MachineUpTime { get; set; }

        public TimeSpan ProductionTime { get; set; }


        public TimeSpan DownTime { get; set; }

        public int Output { get; set; }

        public double OEE { get; set; }


        public double UPH { get; set; }

        public double Yield { get; set; }

        public DateTime LastUpdated { get; set; }

    }
}
